<?php
/***************************************************************************
 *   Copyright (C) 2007 by Andrea Blankenstijn, David Dieulivol            *
 *   darkan9el@gmail.com, daviddieulivol5@hotmail.com                      *
 *                                                                         *
 *   All rights reserved.                                                  *
 *   This work is released under the terms of the New BSD License.         *
 *   See LICENSE.BSD file for licensing details                            *
 ***************************************************************************/
/* * *
 * $Id: index.php 43 2007-08-10 21:43:15Z DarkAn9el $
 * * */

/**
 * \file index.php
 * \brief Meta-interface utilisateur aux classes
 */

require 'includes/config.inc.php';

if($CONFIG['xdebug'])
	require('includes/xdebug.inc.php');

require 'classes/pdoProxy.class.php';
require 'classes/photo.class.php';
require 'classes/gallery.class.php';
require 'classes/adminPhoto.class.php';

$odb = new PdoProxy($CONFIG['db']['dsn'], $CONFIG['db']['prefix'], @$CONFIG['db']['user'], @$CONFIG['db']['pass']);

$ui = $CONFIG['ui']['default'];
if(!empty($_GET['ui']))
	$ui = htmlentities($_GET['ui']);

require 'interfaces/'. $ui .'.ui.php';
?>
